import {
    http,
    defaultSuccess,
    defaultError
}  from "@/plugins/axios";

export default {
    goodList(param, success = defaultSuccess, error = defaultError) {
        http.post("/good/list", param).then(success).catch(error);
    },

    /**
     * 删除
     * @param id
     * @param success
     * @param error
     */
    goodDelete(id, success = defaultSuccess, error = defaultError) {
        http.get("/good/delete/" + id).then(success).catch(error)
    },
    goodSave(param, success = defaultSuccess, error = defaultError) {
        http.post("/good/save",param).then(success).catch(error)
    },


}
